Optimal. Leaf size=373 \[ -\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}-2 d e \log \left (\frac {1}{x}\right ) \left (a+b \text {sech}^{-1}(c x)\right )+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )+\frac {1}{4} b c^2 d^2 \text {sech}^{-1}(c x)+\frac {i b d e \sqrt {1-\frac {1}{c^2 x^2}} \text {Li}_2\left (e^{2 i \csc ^{-1}(c x)}\right )}{\sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}+\frac {i b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x)^2}{\sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}-\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )}{\sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}+\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \log \left (\frac {1}{x}\right ) \csc ^{-1}(c x)}{\sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}+\frac {b c d^2 \sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}{4 x}-\frac {b e^2 x \sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}{2 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.05, antiderivative size = 373, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 16, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.762, Rules used = {6303, 266, 43, 5790, 12, 6742, 95, 90, 52, 2328, 2326, 4625, 3717, 2190, 2279, 2391} \[ \frac {i b d e \sqrt {1-\frac {1}{c^2 x^2}} \text {PolyLog}\left (2,e^{2 i \csc ^{-1}(c x)}\right )}{\sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}-2 d e \log \left (\frac {1}{x}\right ) \left (a+b \text {sech}^{-1}(c x)\right )+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )+\frac {1}{4} b c^2 d^2 \text {sech}^{-1}(c x)+\frac {i b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x)^2}{\sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}-\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )}{\sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}+\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \log \left (\frac {1}{x}\right ) \csc ^{-1}(c x)}{\sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}+\frac {b c d^2 \sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}{4 x}-\frac {b e^2 x \sqrt {\frac {1}{c x}-1} \sqrt {\frac {1}{c x}+1}}{2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 43
Rule 52
Rule 90
Rule 95
Rule 266
Rule 2190
Rule 2279
Rule 2326
Rule 2328
Rule 2391
Rule 3717
Rule 4625
Rule 5790
Rule 6303
Rule 6742
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right )^2 \left (a+b \text {sech}^{-1}(c x)\right )}{x^3} \, dx &=-\operatorname {Subst}\left (\int \frac {\left (e+d x^2\right )^2 \left (a+b \cosh ^{-1}\left (\frac {x}{c}\right )\right )}{x^3} \, dx,x,\frac {1}{x}\right )\\ &=-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )+\frac {b \operatorname {Subst}\left (\int \frac {-\frac {e^2}{x^2}+d^2 x^2+4 d e \log (x)}{2 \sqrt {-1+\frac {x}{c}} \sqrt {1+\frac {x}{c}}} \, dx,x,\frac {1}{x}\right )}{c}\\ &=-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )+\frac {b \operatorname {Subst}\left (\int \frac {-\frac {e^2}{x^2}+d^2 x^2+4 d e \log (x)}{\sqrt {-1+\frac {x}{c}} \sqrt {1+\frac {x}{c}}} \, dx,x,\frac {1}{x}\right )}{2 c}\\ &=-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )+\frac {b \operatorname {Subst}\left (\int \left (-\frac {e^2}{x^2 \sqrt {-1+\frac {x}{c}} \sqrt {1+\frac {x}{c}}}+\frac {d^2 x^2}{\sqrt {-1+\frac {x}{c}} \sqrt {1+\frac {x}{c}}}+\frac {4 d e \log (x)}{\sqrt {-1+\frac {x}{c}} \sqrt {1+\frac {x}{c}}}\right ) \, dx,x,\frac {1}{x}\right )}{2 c}\\ &=-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )+\frac {\left (b d^2\right ) \operatorname {Subst}\left (\int \frac {x^2}{\sqrt {-1+\frac {x}{c}} \sqrt {1+\frac {x}{c}}} \, dx,x,\frac {1}{x}\right )}{2 c}+\frac {(2 b d e) \operatorname {Subst}\left (\int \frac {\log (x)}{\sqrt {-1+\frac {x}{c}} \sqrt {1+\frac {x}{c}}} \, dx,x,\frac {1}{x}\right )}{c}-\frac {\left (b e^2\right ) \operatorname {Subst}\left (\int \frac {1}{x^2 \sqrt {-1+\frac {x}{c}} \sqrt {1+\frac {x}{c}}} \, dx,x,\frac {1}{x}\right )}{2 c}\\ &=\frac {b c d^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}{4 x}-\frac {b e^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}} x}{2 c}-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )+\frac {1}{4} \left (b c d^2\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {-1+\frac {x}{c}} \sqrt {1+\frac {x}{c}}} \, dx,x,\frac {1}{x}\right )+\frac {\left (2 b d e \sqrt {1-\frac {1}{c^2 x^2}}\right ) \operatorname {Subst}\left (\int \frac {\log (x)}{\sqrt {1-\frac {x^2}{c^2}}} \, dx,x,\frac {1}{x}\right )}{c \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}\\ &=\frac {b c d^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}{4 x}-\frac {b e^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}} x}{2 c}+\frac {1}{4} b c^2 d^2 \text {sech}^{-1}(c x)-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )+\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-\frac {\left (2 b d e \sqrt {1-\frac {1}{c^2 x^2}}\right ) \operatorname {Subst}\left (\int \frac {\sin ^{-1}\left (\frac {x}{c}\right )}{x} \, dx,x,\frac {1}{x}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}\\ &=\frac {b c d^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}{4 x}-\frac {b e^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}} x}{2 c}+\frac {1}{4} b c^2 d^2 \text {sech}^{-1}(c x)-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )+\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-\frac {\left (2 b d e \sqrt {1-\frac {1}{c^2 x^2}}\right ) \operatorname {Subst}\left (\int x \cot (x) \, dx,x,\csc ^{-1}(c x)\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}\\ &=\frac {b c d^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}{4 x}-\frac {b e^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}} x}{2 c}+\frac {i b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x)^2}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}+\frac {1}{4} b c^2 d^2 \text {sech}^{-1}(c x)-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )+\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )+\frac {\left (4 i b d e \sqrt {1-\frac {1}{c^2 x^2}}\right ) \operatorname {Subst}\left (\int \frac {e^{2 i x} x}{1-e^{2 i x}} \, dx,x,\csc ^{-1}(c x)\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}\\ &=\frac {b c d^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}{4 x}-\frac {b e^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}} x}{2 c}+\frac {i b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x)^2}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}+\frac {1}{4} b c^2 d^2 \text {sech}^{-1}(c x)-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )-\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}+\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )+\frac {\left (2 b d e \sqrt {1-\frac {1}{c^2 x^2}}\right ) \operatorname {Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\csc ^{-1}(c x)\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}\\ &=\frac {b c d^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}{4 x}-\frac {b e^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}} x}{2 c}+\frac {i b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x)^2}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}+\frac {1}{4} b c^2 d^2 \text {sech}^{-1}(c x)-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )-\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}+\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )-\frac {\left (i b d e \sqrt {1-\frac {1}{c^2 x^2}}\right ) \operatorname {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{2 i \csc ^{-1}(c x)}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}\\ &=\frac {b c d^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}{4 x}-\frac {b e^2 \sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}} x}{2 c}+\frac {i b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x)^2}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}+\frac {1}{4} b c^2 d^2 \text {sech}^{-1}(c x)-\frac {d^2 \left (a+b \text {sech}^{-1}(c x)\right )}{2 x^2}+\frac {1}{2} e^2 x^2 \left (a+b \text {sech}^{-1}(c x)\right )-\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (1-e^{2 i \csc ^{-1}(c x)}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}+\frac {2 b d e \sqrt {1-\frac {1}{c^2 x^2}} \csc ^{-1}(c x) \log \left (\frac {1}{x}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}-2 d e \left (a+b \text {sech}^{-1}(c x)\right ) \log \left (\frac {1}{x}\right )+\frac {i b d e \sqrt {1-\frac {1}{c^2 x^2}} \text {Li}_2\left (e^{2 i \csc ^{-1}(c x)}\right )}{\sqrt {-1+\frac {1}{c x}} \sqrt {1+\frac {1}{c x}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.84, size = 212, normalized size = 0.57 \[ \frac {1}{4} \left (-\frac {2 a d^2}{x^2}+8 a d e \log (x)+2 a e^2 x^2-\frac {b d^2 \sqrt {\frac {1-c x}{c x+1}} \left (-c^2 x^2+c^2 x^2 \sqrt {1-c^2 x^2} \tanh ^{-1}\left (\sqrt {1-c^2 x^2}\right )+1\right )}{x^2 (c x-1)}-\frac {2 b e^2 \sqrt {\frac {1-c x}{c x+1}} (c x+1)}{c^2}-\frac {2 b d^2 \text {sech}^{-1}(c x)}{x^2}+4 b d e \text {Li}_2\left (-e^{-2 \text {sech}^{-1}(c x)}\right )-4 b d e \text {sech}^{-1}(c x) \left (\text {sech}^{-1}(c x)+2 \log \left (e^{-2 \text {sech}^{-1}(c x)}+1\right )\right )+2 b e^2 x^2 \text {sech}^{-1}(c x)\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.51, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {a e^{2} x^{4} + 2 \, a d e x^{2} + a d^{2} + {\left (b e^{2} x^{4} + 2 \, b d e x^{2} + b d^{2}\right )} \operatorname {arsech}\left (c x\right )}{x^{3}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (e x^{2} + d\right )}^{2} {\left (b \operatorname {arsech}\left (c x\right ) + a\right )}}{x^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.60, size = 252, normalized size = 0.68 \[ \frac {a \,x^{2} e^{2}}{2}+2 a d e \ln \left (c x \right )-\frac {a \,d^{2}}{2 x^{2}}+b d e \mathrm {arcsech}\left (c x \right )^{2}+\frac {c b \,d^{2} \sqrt {-\frac {c x -1}{c x}}\, \sqrt {\frac {c x +1}{c x}}}{4 x}+\frac {b \,c^{2} d^{2} \mathrm {arcsech}\left (c x \right )}{4}-\frac {b \,\mathrm {arcsech}\left (c x \right ) d^{2}}{2 x^{2}}-\frac {b \sqrt {-\frac {c x -1}{c x}}\, \sqrt {\frac {c x +1}{c x}}\, x \,e^{2}}{2 c}+\frac {b \,\mathrm {arcsech}\left (c x \right ) x^{2} e^{2}}{2}+\frac {b \,e^{2}}{2 c^{2}}-2 b d e \,\mathrm {arcsech}\left (c x \right ) \ln \left (1+\left (\frac {1}{c x}+\sqrt {-1+\frac {1}{c x}}\, \sqrt {1+\frac {1}{c x}}\right )^{2}\right )-b d e \polylog \left (2, -\left (\frac {1}{c x}+\sqrt {-1+\frac {1}{c x}}\, \sqrt {1+\frac {1}{c x}}\right )^{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {1}{2} \, a e^{2} x^{2} - \frac {1}{8} \, b d^{2} {\left (\frac {\frac {2 \, c^{4} x \sqrt {\frac {1}{c^{2} x^{2}} - 1}}{c^{2} x^{2} {\left (\frac {1}{c^{2} x^{2}} - 1\right )} - 1} - c^{3} \log \left (c x \sqrt {\frac {1}{c^{2} x^{2}} - 1} + 1\right ) + c^{3} \log \left (c x \sqrt {\frac {1}{c^{2} x^{2}} - 1} - 1\right )}{c} + \frac {4 \, \operatorname {arsech}\left (c x\right )}{x^{2}}\right )} + 2 \, a d e \log \relax (x) - \frac {a d^{2}}{2 \, x^{2}} + \int b e^{2} x \log \left (\sqrt {\frac {1}{c x} + 1} \sqrt {\frac {1}{c x} - 1} + \frac {1}{c x}\right ) + \frac {2 \, b d e \log \left (\sqrt {\frac {1}{c x} + 1} \sqrt {\frac {1}{c x} - 1} + \frac {1}{c x}\right )}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (e\,x^2+d\right )}^2\,\left (a+b\,\mathrm {acosh}\left (\frac {1}{c\,x}\right )\right )}{x^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a + b \operatorname {asech}{\left (c x \right )}\right ) \left (d + e x^{2}\right )^{2}}{x^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________